﻿using System.Collections.Generic;

namespace Gonte.Validation
{
    /// <summary>
    /// Allows an object to implement custom validation
    /// </summary>
    public interface IValidable
    {
        /// <summary>
        /// Validates the object
        /// </summary>
        /// <param name="errors">The list with the errors</param>
        /// <returns></returns>
        bool Validate(ref List<ValidationError> errors);
    }
}
